package com.sanley.piss.mapper;


import com.sanley.piss.model.BaseMapper;
import com.sanley.piss.model.po.DictionaryType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 张凯大天才
 */
@Mapper
public interface DictionaryTypeMapper extends BaseMapper<DictionaryType> {
    /**
     * 查询type表所有信息
     * @return
     */
    @Select("select * from t_system_dictionary_type")
    List<DictionaryType> selectAll();

    /**
     * 根据type名查询type表ID
     * @param name
     * @return
     */
    @Select("select id from t_system_dictionary_type where dic_type_name=#{name}")
    Integer selectIdByName(String name);


}
